@extends('layout.admin')

@section('content')
<!-- 放一个表单 -->
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>会员修改</span>
    </div>
    <div class="mws-panel-body no-padding">
          

    	<form class="mws-form" action="/vip/update" method="post" enctype="multipart/form-data">
        	@if(count($errors) > 0)
            <div class="mws-form-message warning">
                @foreach($errors->all() as $error)
                    {{$error}}<br>
                @endforeach
            </div>
            @endif 

    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">用户名</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="username" value="{{$vipuser->username}}">
    				</div>
    			</div>
    			
    			<div class="mws-form-row">
    				<label class="mws-form-label">积分</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="jifen" value="{{$vipuser->jifen}}">
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">等级</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="dengji" value="{{$vipuser->dengji}}">
    				</div>
    			</div>
    		</div>
    		<div class="mws-button-row">
    			<!-- 添加隐藏域 -->
    			{{csrf_field()}}
                <input type="hidden" name="id" value="{{$vipuser->id}}">
    			<input value="修改" class="btn btn-danger" type="submit">
    			<input value="重置" class="btn " type="reset">
    		</div>
    	</form>
    </div>    	
</div>
@endsection
